x86/hyperv: provide percpu hypercall input page
authorWei Liu <liuwe@microsoft.com>
Sun, 29 Dec 2019 16:57:21 +0000 (16:57 +0000)
committerWei Liu <wl@xen.org>
Wed, 5 Feb 2020 16:05:06 +0000 (16:05 +0000)
commitdbc9b60ba39d9d64f2cdeb0f8ad7a2b63dca85c9
tree38d39ca04dc9288c4e204f589e51eadf0f366686
parentacd326759aa119f534b7c9b641e7dd185940fe05
x86/hyperv: provide percpu hypercall input page

Hyper-V's input / output argument must be 8 bytes aligned an not cross
page boundary. One way to satisfy those requirements is to use percpu
page.

For the foreseeable future we only need to provide input for TLB
and APIC hypercalls, so skip setting up an output page.

We will also need to provide an ap_setup hook for secondary cpus to
setup its own input page.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/guest/hyperv/hyperv.c
xen/arch/x86/guest/hyperv/private.h [new file with mode: 0644]